﻿<?php
$connect = mysql_connect('localhost', 'tass', '114'); // DB 연결

$db_id=mysql_select_db("tass",$connect);

//$userID = $_REQUEST['user'];

$sql = "SELECT * FROM file_management;";

$rs = mysql_query($sql, $connect);

while($result = mysql_fetch_array($rs)){
  $seq = $result[seq];
  $contests = $result[contests];
  $txt_file_name = $result[txt_file_name];
  $translator = $result[translator];
      
$xmlList.="<file><seq>$seq</seq><contents>$contents</contents><txt_file_name>$txt_file_name</txt_file_name><translator>$translator</translator></file>";

}
mysql_free_result($rs);

$xmlDoc="<?xml version='1.0' encoding='utf-8'?><manage>$xmlList</manage>";

 echo    $xmlDoc;

?>